const { build, pause, concat } = require('./build');

// require("./demo_js_windows.cpp.js");

var files = [
];

var cppfiles = [
  "demo",
];

var proc = async () => {

  var hardFloat = process.argv[2] == "hardFloat";
  var param = ["-I./glibc"];

  var targets = [];
  for (var i = 0; i < files.length; i++) {
    var ret = await build("./" + files[i], hardFloat, false, param);
    targets.push(ret);
  }
  
  for (var i = 0; i < cppfiles.length; i++) {
    var ret = await build("./" + cppfiles[i], hardFloat, true, param);
    targets.push(ret);
  }

  concat(targets, "demo.s");

  console.log("finish");
  //pause();
}
proc();

//setTimeout(() => { }, 100000);
